{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 14px; /* 减小整体字体大小 */
}

:root {
    --primary-color: #4361ee;
    --secondary-color: #3f37c9;
    --accent-color: #4895ef;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --success-color: #4cc9f0;
    --border-color: #dee2e6;
    --sidebar-width: 250px;
    --header-height: 60px;
    --transition: all 0.3s ease;
}

body {
    background-color: #f0f2f5;
    color: var(--dark-color);
    display: flex;
    min-height: 100vh;
}

/* 侧边栏样式 */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    height: 100vh;
    position: fixed;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    transition: var(--transition);
}

.logo {
    padding: 20px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo h1 {
    font-size: 1.2rem; /* 调整字体大小 */
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo i {
    font-size: 1.5rem; /* 调整字体大小 */
    color: #fff;
}

.menu {
    padding: 20px 0;
}

.menu-item {
    padding: 12px 20px; /* 调整内边距 */
    display: flex;
    align-items: center;
    gap: 10px; /* 调整间距 */
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem; /* 调整字体大小 */
    border-left: 4px solid transparent;
}

.menu-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-item.active {
    background: rgba(255, 255, 255, 0.15);
    border-left: 4px solid var(--success-color);
}

/* 主内容区域 */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 15px; /* 调整内边距 */
    min-height: 100vh;
}

.header {
    background-color: white;
    padding: 12px 20px; /* 调整内边距 */
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px; /* 调整外边距 */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.3rem; /* 调整字体大小 */
}

.user-info {
    display: flex;
    align-items: center;
    gap: 8px; /* 调整间距 */
}

.user-avatar {
    width: 35px; /* 调整尺寸 */
    height: 35px; /* 调整尺寸 */
    border-radius: 50%;
    background-color: var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 0.8rem; /* 调整字体大小 */
}

/* 内容区域样式 */
.content-area {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 20px; /* 调整内边距 */
    min-height: calc(100vh - 150px);
}

.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 60vh;
    color: #6c757d;
}

.empty-state i {
    font-size: 4rem; /* 调整字体大小 */
    margin-bottom: 15px; /* 调整外边距 */
    color: #dee2e6;
}

.empty-state h3 {
    font-size: 1.5rem; /* 调整字体大小 */
    margin-bottom: 8px; /* 调整外边距 */
}

.empty-state p {
    text-align: center;
    max-width: 500px;
    line-height: 1.6;
    font-size: 0.9rem; /* 调整字体大小 */
}

/* 测试案例关联分析布局 */
.analysis-container {
    display: none;
    flex-direction: column; /* 改为垂直排列 */
    gap: 15px; /* 调整间距 */
    height: 100%;
    max-height: 80vh; /* 设置最大高度 */
    overflow-y: auto; /* 添加垂直滚动条 */
}

.class-methods-panel, .test-cases-panel {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    padding: 15px; /* 调整内边距 */
    overflow: hidden;
    display: flex;
    flex-direction: column;
    width: 100%; /* 设置宽度为100% */
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px; /* 调整内边距 */
    margin-bottom: 12px; /* 调整外边距 */
    border-bottom: 1px solid var(--border-color);
}

.panel-header h3 {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem; /* 调整字体大小 */
}

.search-box {
    display: flex;
    gap: 8px; /* 调整间距 */
    margin-bottom: 12px; /* 调整外边距 */
}

.search-box input {
    flex: 1;
    padding: 8px 12px; /* 调整内边距 */
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 0.85rem; /* 调整字体大小 */
}

.search-box button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px 12px; /* 调整内边距 */
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.85rem; /* 调整字体大小 */
}

.search-box button:hover {
    background-color: var(--secondary-color);
}

/* 表格样式 */
.table-container {
    overflow-y: auto;
    flex: 1;
    max-height: 300px; /* 设置表格最大高度 */
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    position: sticky;
    top: 0;
    background-color: #f8f9fa;
}

th {
    background-color: #f1f3f5;
    padding: 10px 12px; /* 调整内边距 */
    text-align: left;
    font-weight: 600;
    color: #495057;
    border-bottom: 2px solid var(--border-color);
    font-size: 0.85rem; /* 调整字体大小 */
}

td {
    padding: 10px 12px; /* 调整内边距 */
    border-bottom: 1px solid var(--border-color);
    color: #495057;
    font-size: 0.85rem; /* 调整字体大小 */
}

tr:hover {
    background-color: #f8f9fa;
}

.btn {
    padding: 5px 10px; /* 调整内边距 */
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 0.8rem; /* 调整字体大小 */
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
}

.btn-outline {
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: #6c757d;
}

.btn-outline:hover {
    background-color: #f8f9fa;
}

.category-badge {
    display: inline-block;
    padding: 3px 6px; /* 调整内边距 */
    border-radius: 12px;
    font-size: 0.7rem; /* 调整字体大小 */
    background-color: #e9ecef;
    color: #495057;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .analysis-container {
        flex-direction: column;
    }

    .class-methods-panel, .test-cases-panel {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }

    .sidebar .logo h1 span,
    .sidebar .menu-item span {
        display: none;
    }

    .sidebar .logo h1 {
        justify-content: center;
    }

    .main-content {
        margin-left: 70px;
    }

    .menu-item {
        justify-content: center;
    }
}